/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import Server.MyConnect;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Vector;
import javax.swing.JOptionPane;

/**
 *
 * @author Admin
 */
public class User implements Serializable{

     String Username, Password;
     private String Role;

    public User() {
    }

    public User(String Username, String Password) {
        this.Username = Username;
        this.Password = Password;
    }
    public String getUsername()
    {
        return Username;
    }
    public String getPassword()
    {
        return Password;
    }
    public void setUsername(String username)
    {
        this.Username = username;
    }
    public void setPassword(String password)
    {
        this.Password = password;
    }
    public String getRole()
    {
        return Role;
                
    }
    public void setRole(String role)
    {
        this.Role = role;
    }
    public Vector toVector() {
        Vector v = new Vector();
        v.addElement(Username);        
        v.addElement(Password);
        v.addElement(Role);
        return v;

    }  
    

  
}
